package
{
	import com.bit101.components.ScrollBar;
	import com.bit101.components.Slider;
	import com.feng.components.FScrollSlider;
	import com.feng.components.FSlider;

	import flash.display.Sprite;
	import flash.events.Event;

	import fla.ui.ScrollSliderTest;
	import fla.ui.SliderTest;

	public class TestScrollSlider extends Sprite
	{
		public function TestScrollSlider()
		{
			var sliderTest:SliderTest = new SliderTest();

			addChild(sliderTest);

			var tHSlider:FSlider = FSlider.make(sliderTest.tHSlider, FSlider.HORIZONTAL);
			tHSlider.backClick = true;

			sliderTest.tHSlider.x = 40;

			var scrollSliderTest:ScrollSliderTest = new ScrollSliderTest();
			addChild(scrollSliderTest);
			var tScrollSlider:FScrollSlider = FScrollSlider.make(scrollSliderTest.tScrollSlider, FSlider.VERTICAL);
			tScrollSlider.backClick = true;

			tHSlider.addEventListener(Event.CHANGE, function(event:Event):void
			{
				tScrollSlider.setThumbPercent(tHSlider.value / 100);
				trace(tScrollSlider.value,tScrollSlider.minimum,tScrollSlider.maximum);
			});


			tScrollSlider.addEventListener(Event.CHANGE, function(event:Event):void
			{
				trace(tScrollSlider.value);
			});

		}
	}
}
